// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'OtherId',
        footer: "Foots",
        cnName: '其他入库',
        name: 'other_storage',
        url: "/other_storage/",
        sortName: "OtherId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"OtherCode":"","OtherName":"","OtherDept":"","OtherTime":"","OtherNote":"","OtherPerson":""};
    const editFormOptions = [[{"title":"入库编号","required":true,"field":"OtherCode","type":"text"},
                               {"title":"入库名称","required":true,"field":"OtherName","type":"text"}],
                              [{"dataKey":"部门","data":[],"title":"入库部门","required":true,"field":"OtherDept","type":"select"},
                               {"title":"入库日期","required":true,"field":"OtherTime","type":"date"}],
                              [{"title":"备注","field":"OtherNote","type":"textarea"},
                               {"dataKey":"用户列表","data":[],"title":"入库人","required":true,"field":"OtherPerson","type":"select"}]];
    const searchFormFields = {"OtherCode":"","OtherName":"","OtherDept":"","OtherTime":"","OtherNote":"","OtherPerson":""};
    const searchFormOptions = [[{"title":"入库编号","field":"OtherCode","type":"="},{"title":"入库名称","field":"OtherName","type":"like"}],[{"dataKey":"部门","data":[],"title":"入库部门","field":"OtherDept","type":"="},{"title":"入库日期","field":"OtherTime","type":"date"}],[{"title":"备注","field":"OtherNote","type":"like"},{"dataKey":"用户列表","data":[],"title":"入库人","field":"OtherPerson","type":"="}]];
    const columns = [{field:'OtherId',title:'主键ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'OtherCode',title:'入库编号',type:'string',width:110,hidden:true,require:true,align:'left'},
                       {field:'OtherName',title:'入库名称',type:'string',width:120,require:true,align:'left',sort:true},
                       {field:'OtherDept',title:'入库部门',type:'int',bind:{ key:'部门',data:[]},width:110,require:true,align:'left'},
                       {field:'OtherTime',title:'入库日期',type:'datetime',width:150,require:true,align:'left',sort:true},
                       {field:'OtherNote',title:'备注',type:'string',width:110,align:'left'},
                       {field:'OtherPerson',title:'入库人',type:'int',bind:{ key:'用户列表',data:[]},width:110,require:true,align:'left'},
                       {field:'ProductCode',title:'产品管理外键',type:'string',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}